import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '',
            dataIndex: 'apiKey',
            width: 200,
        },
        {
            title: '客户端秘钥',
            dataIndex: 'secretKey',
            width: 200,
        },
        {
            title: 'app名称',
            dataIndex: 'appName',
            width: 200,
        },
        {
            title: 'app英文名称',
            dataIndex: 'appNameEn',
            width: 200,
        },
        {
            title: '应用图标',
            dataIndex: 'appIcon',
            width: 200,
        },
        {
            title: 'app类型:server-服务应用 app-手机应用 pc-PC网页应用 wap-手机网页应用',
            dataIndex: 'appType',
            width: 200,
        },
        {
            title: 'app描述',
            dataIndex: 'appDesc',
            width: 200,
        },
        {
            title: '移动应用操作系统:ios-苹果 android-安卓',
            dataIndex: 'appOs',
            width: 200,
        },
        {
            title: '官网地址',
            dataIndex: 'website',
            width: 200,
        },
        {
            title: '用户ID:默认为0',
            dataIndex: 'userId',
            width: 200,
        },
        {
            title: '用户类型:platform-平台 isp-服务提供商 dev-自研开发者',
            dataIndex: 'userType',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '状态:0-无效 1-有效',
            dataIndex: 'status',
            width: 200,
        },
        {
            title: '保留数据0-否 1-是 不允许删除',
            dataIndex: 'isPersist',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '',
            field: 'apiKey',
            component: 'Input',
            required: true,
        },
        {
            label: '客户端秘钥',
            field: 'secretKey',
            component: 'Input',
            required: true,
        },
        {
            label: 'app名称',
            field: 'appName',
            component: 'Input',
            required: true,
        },
        {
            label: 'app英文名称',
            field: 'appNameEn',
            component: 'Input',
            required: true,
        },
        {
            label: '应用图标',
            field: 'appIcon',
            component: 'Input',
            required: true,
        },
        {
            label: 'app类型:server-服务应用 app-手机应用 pc-PC网页应用 wap-手机网页应用',
            field: 'appType',
            component: 'Input',
            required: true,
        },
        {
            label: 'app描述',
            field: 'appDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '移动应用操作系统:ios-苹果 android-安卓',
            field: 'appOs',
            component: 'Input',
            required: true,
        },
        {
            label: '官网地址',
            field: 'website',
            component: 'Input',
            required: true,
        },
        {
            label: '用户ID:默认为0',
            field: 'userId',
            component: 'Input',
            required: true,
        },
        {
            label: '用户类型:platform-平台 isp-服务提供商 dev-自研开发者',
            field: 'userType',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '状态:0-无效 1-有效',
            field: 'status',
            component: 'Input',
            required: true,
        },
        {
            label: '保留数据0-否 1-是 不允许删除',
            field: 'isPersist',
            component: 'Input',
            required: true,
        },
];
